<?php
    header('Content-type:text/json');
    require "../../connection.php";
    try{
            $text = $_POST['content'];
            $sql = "select * from admin where nickname like '%".$text."%'";
            $result = $conn->doSql($sql);
            if($result){
                $msg = "查询成功";
            }else{
                $msg = "查询失败";
            }
            $data = array("status"=>"1","msg"=>$msg,"data"=>$result);
            echo json_encode($data);
    }catch(Exception $e){
        print_r($e->getMessage());
    }
?>